import type { GreasyForkElements } from '../../../../../../../../../types/constants/personalization/greasy_fork'
import {
  AppStyleCollections,
  PAGE_ELEMENTS,
  SUPPORTED_PLATFORMS,
} from '../../../../../../../../../types/constants'

// 测试链接：https://greasyfork.org/zh-CN/help/meta-keys
export class MetaKeysPage {
  elements: GreasyForkElements = PAGE_ELEMENTS[SUPPORTED_PLATFORMS.GREASY_FORK]
  private static instance: MetaKeysPage

  /**
   * 获取单例实例
   */
  public static getInstance(): MetaKeysPage {
    if (!MetaKeysPage.instance) {
      MetaKeysPage.instance = new MetaKeysPage()
    }
    return MetaKeysPage.instance
  }

  init(): void {
    $('.text-content .self-link').addClass(AppStyleCollections.Hide.ELEMENT)
  }

  getMainStyles(): string {
    return ``
  }
}
